//var FightScene = require("FightScene");
var skillContent = require("skillContent");
cc.Class({
    extends: cc.Component,
    properties: {
        //m_fight_scene : FightScene,
        ui_title : cc.Label,
        skillName : "",
        skillIndex : 0,
        skillSummary : "",
        //skillContent,
        m_skill_content : skillContent,
    },
    start(){
        this.ui_title.string = this.skillName;
        this.node.on(cc.Node.EventType.TOUCH_END,function(t){
            //this.m_fight_scene.chooseSkill(this.skillIndex);
            this.m_skill_content.node.active = true;
            this.m_skill_content.node.setPosition(t.touch.getLocation());
            this.m_skill_content.m_index = this.skillIndex;
            this.m_skill_content.m_content.string = this.skillSummary;
        },this);
    }
});